<template>
  <div>
    <div class="banner" @click="showimg">
      <img
        class="banner-img"
        src="https://imgs.qunarzz.com/vs_ceph_vs_tts/34fe2652-99bf-47e9-ac2a-8df289169c01.jpg_r_390x260x95_6727fc1e.jpg"
        alt=""
      />
      <div class="banner-info">
        <div class="banner-tittle">大连圣亚海洋世界</div>
        <div class="banner-number"><span class="iconfont">&#xe8ab;</span></div>
      </div>
    </div>
    <transition>
      <CommonGallary v-show="showGallary" @close="close" />
    </transition>
  </div>
</template>

<script>
import CommonGallary from "@/pages/common/gallary/Gallary";
export default {
  name: "",
  components: { CommonGallary },
  props: [],
  data() {
    return {
      showGallary: false,
      
    };
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    showimg() {
      this.showGallary = true;
    },
    close(i) {
      this.showGallary = i;
    },
  },
};
</script>

<style lang='stylus' scoped>
.v-enter {
  opacity: 0;
}

.v-leave-to {
  opacity: 0;
}

.v-enter-active, .v-leave-active {
  transition: all 3s ease;
}

.banner {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 55%;

  .banner-img {
    width: 100%;
  }

  .banner-info {
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    line-height: 0.6rem;
    background-image: linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));

    .banner-tittle {
      color: white;
      flex: 1;
      padding-left: 0.2rem;
    }

    .banner-number {
      margin-top: 0.1rem;
      padding: 0 0.4rem;
      height: 0.4rem;
      line-height: 0.4rem;
      border-radius: 0.2rem;
      color: white;
    }
  }
}
</style>
